package com.ecut.property_project.service.bunk;

import com.ecut.property_project.mapper.bunk.BunkHeadMapper;
import com.ecut.property_project.model.bunk.BunkHead;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BunkHeadService{

    @Resource
    private BunkHeadMapper bunkHeadMapper;

    
    public int deleteByPrimaryKey(String bunkId) {
        return bunkHeadMapper.deleteByPrimaryKey(bunkId);
    }

    
    public int insert(BunkHead record) {
        return bunkHeadMapper.insert(record);
    }

    
    public int insertSelective(BunkHead record) {
        return bunkHeadMapper.insertSelective(record);
    }

    public List<BunkHead> selectAll(){ return bunkHeadMapper.selectAll(); }

    public List<BunkHead> selectByPage(Integer page, Integer pageSize){return bunkHeadMapper.selectByPage(page,pageSize);}

    public BunkHead selectByPrimaryKey(String bunkId) {
        return bunkHeadMapper.selectByPrimaryKey(bunkId);
    }

    
    public int updateByPrimaryKeySelective(BunkHead record) {
        return bunkHeadMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BunkHead record) {
        return bunkHeadMapper.updateByPrimaryKey(record);
    }

}
